Skip to content

Fix a flaky reveal test - #4

Merged
crmapache merged 1 commit into
mainfrom
fix-flaky-reveal-test
Oct 16, 2026
Merged

crmapache merged 1 commit into
mainfrom
fix-flaky-reveal-test

Conversation

@crmapache

Copy link
Copy Markdown
Owner

The RevealProvider reset-key test compared animation delays measured from the real clock with no tolerance, and failed at random on CI (240 vs 240.0000000000001) once the queue was held at maxWaveLagMs. The clock is now frozen for the test and the comparison allows 0.001 ms, far below the 36 ms stagger that a reused slot would show. Library code is unchanged.

The test compared animation delays measured from the real clock, with no
tolerance. Once the queue sits at maxWaveLagMs both delays are 240 ms up to
floating-point rounding, so it failed at random (240 vs 240.0000000000001 on
CI). The clock is now frozen for the test, and the comparison allows a
thousandth of a millisecond, far below the 36 ms a reused slot would cost.
@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
smooth-stream-text Ready Ready Preview Oct 16, 2026 6:23pm UTC

@crmapache
crmapache merged commit 6d060de into main Oct 16, 2026
15 checks passed
@crmapache
crmapache deleted the fix-flaky-reveal-test branch October 16, 2026 18:25

This branch was successfully deployed

1 active deployment
Preview — 4155a236 Deployed Oct 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant